)} ,System.Collections.Generic.IComparer{--0})}
LiveQuery.OrderBy(Func) method¶
Defined in
Type: LiveQueryReactiveList.Reactive.Queries Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public OrderedLiveQuery<T> OrderBy<TKey>(Func<T, TKey> keySelector)public OrderedLiveQuery<T> OrderBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)
1. Overload¶
public OrderedLiveQuery<T> OrderBy<TKey>(Func<T, TKey> keySelector)
View source (opens in a new tab)
Summary: Orders the items ascending by a key.
Type parameters
| Name | Description |
|---|---|
TKey | The sort key type. |
Parameters
| Name | Type | Description |
|---|---|---|
keySelector | Func | Takes the sort key from an item. |
Returns: OrderedLiveQuery
2. Overload¶
public OrderedLiveQuery<T> OrderBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)
View source (opens in a new tab)
Summary: Orders the items ascending by a key.
Type parameters
| Name | Description |
|---|---|
TKey | The sort key type. |
Parameters
| Name | Type | Description |
|---|---|---|
keySelector | Func | Takes the sort key from an item. |
comparer | IComparer | Compares two keys. |
Returns: OrderedLiveQuery